package com.xinyun.server.util;

import io.netty.buffer.ByteBuf;

/**
 * Created by bubusy on 16/5/28.
 */
public class Utils {

    public static String parseTime(ByteBuf byteBuf) {
        String dateStr = "20" + String.valueOf(byteBuf.readByte()) + "-" //年
                + String.valueOf(byteBuf.readByte()) + "-" //月
                + String.valueOf(byteBuf.readByte()) + " " //日
                + String.valueOf(byteBuf.readByte()) + ":" //时
                + String.valueOf(byteBuf.readByte()) + ":" //分
                + String.valueOf(byteBuf.readByte());//秒

        return dateStr;

    }
}
